﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Student:Person
    {
        public string Major { get; set; }
        public string Grade { get; set; }

        public Student(string Id, string Name, char Sex, string Cardid, string Tel):base(Id, Name, Sex, Cardid, Tel)
        {
             
        }
        public Student(string Id, string Name, char Sex, string Cardid, string Tel, string Major, string Grade) : base(Id, Name, Sex, Cardid, Tel)
        {
            this.Major = Major;
            this.Grade = Grade;
        }
        public void print()
        {
            Console.WriteLine("我的学生编号是：{0}，我叫{1}，{2}，身份证号码是：{3}。",this.Id, this.Name, this.Sex, this.Cardid);
            Console.WriteLine("联系方式是：{0}，{1}专业{2}。",this.Tel,this.Major,this.Grade);
        }
        
    }
}
